/*
**qui{
replace ave_clkgxi=$ave_clkgxi in $i
replace ave_mtr=$mtr in $i
replace ave_mtr_zero=$mtr_zero in $i
replace N=e(N) in $i
replace N_cg=$N_cg in $i
replace cg_2=$cg in $i
replace up_2=$up in $i
replace num_reports_2=$num_reports in $i
replace version=$version in $i
forvalues y=1985(1)1999 {
local yy=`y'
if `y'<=1991 {
local yy=`y'+18
}
replace b`y'=_b[$cg.cg#`yy'.year] in $i
replace se`y'=_se[$cg.cg#`yy'.year] in $i
}
global i = $i+1
**}
*/


**qui{
replace ave_clkgxi=$ave_clkgxi in $i
replace ave_mtr=$mtr in $i
replace ave_mtr_zero=$mtr_zero in $i
replace N=e(N) in $i
*replace N_cg_8293=$N_cg_8293 in $i
*replace cg_8293_2=$cg_8293 in $i
replace N_cg_8593=$N_cg_8593 in $i
replace cg_8593_2=$cg_8593 in $i
*replace num_reports_2=$num_reports in $i
replace version=$version in $i
forvalues t=1(1)9 {
*local yy=`y'
*if `y'<=1991 {
*local yy=`y'+18
*}
replace b`t'=_b[_T_event_`t'] in $i
replace se`t'=_se[_T_event_`t'] in $i
}
forvalues t=11(1)23 {
*local yy=`y'
*if `y'<=1991 {
*local yy=`y'+18
*}
replace b`t'=_b[_T_event_`t'] in $i
replace se`t'=_se[_T_event_`t'] in $i
}
global i = $i+1
**}



